class_name UnitStats
extends Resource

enum UnitType { PLAYER, ENEMY}

@export var name: String
@export var type: UnitType
@export var icon: Texture2D
@export var health := 1.0
@export var health_increase_per_wave := 1.0
@export var damage := 1.0
@export var damage_increase_per_wave := 1.0
@export var speed := 300
@export var luck := 1.0
@export var block_chance := 0.0
@export var gold_drop := 1
@export var hp_regen := 0.0
@export var life_steal := 0.0
@export var harvesting := 0

func get_description() -> String:
	return "[code]Health: [color=green]%s[/color]\nDamage: [color=green]%s[/color]\nSpeed: [color=green]%s[/color]\nLuck: [color=green]%s[/color]\nBlock Chance: [color=green]%s%%[/color]\n[/code]" %[health, damage, speed, luck, block_chance]
